<?php
$this->breadcrumbs = array(
	'Sự kiện'=>array('/Events/default/index'),
	'Cập nhật Nhãn sự kiện'
);
?>

<!-- BEGIN PORTLET-->
<div class="row">
	<div class="col-md-12">
        <div class="portlet">
        	<div class="portlet-title">
            	<div class="caption"><i class="icon-add"></i> Cập nhật nhãn sự kiện</div>
            </div>
            <div class="portlet-body">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'label-form',
	'enableClientValidation'=>false,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
	'htmlOptions'=>array(
		'class'=>'horizontal-form',
	),
)); ?>
<div class="form-body">
	<div class="row">
    	<div class="col-md-9">
            <div class="form-group">
                <?php echo $form->textField($model, 'title', array('class'=>'form-control')); ?>
            </div>
            <div class="form-group <?php echo ($model->seotool->getError('title') ? 'has-error' : ''); ?>">
                <?php echo $form->labelEx($model->seotool, 'title', array('class'=>'control-label')); ?>
                <?php echo $form->textField($model->seotool, 'title', array('class'=>'form-control')); ?>
                <?php echo $form->error($model->seotool, 'title', array('class'=>'help-block')); ?>
            </div>
            
            <div class="form-group <?php echo ($model->seotool->getError('description') ? 'has-error' : ''); ?>">
                <?php echo $form->labelEx($model->seotool, 'description', array('class'=>'control-label')); ?>
                <?php echo $form->textArea($model->seotool, 'description', array('class'=>'form-control', 'rows'=>5)); ?>
                <?php echo $form->error($model->seotool, 'description', array('class'=>'help-block')); ?>
            </div>
            
            <div class="form-group <?php echo ($model->seotool->getError('keywords') ? 'has-error' : ''); ?>">
                <?php echo $form->labelEx($model->seotool, 'keywords', array('class'=>'control-label')); ?>
                <?php echo $form->textField($model->seotool, 'keywords', array('class'=>'form-control')); ?>
                <?php echo $form->error($model->seotool, 'keywords', array('class'=>'help-block')); ?>
            </div>
		</div>
        <div class="col-md-3">
            <button type="submit" class="btn blue" onClick="Custom.showLoading();"><i class="icon-ok"></i> Cập nhật</button>
            <button type="reset" class="btn default">Cancel</button>
        </div>
	</div>
</div>
<?php $this->endWidget(); ?>
            </div>
        </div>
    </div>
</div>
<!-- END PORTLET-->